<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  <title>Lazy!</title>
  <link rel="stylesheet" href="../swipeslide.css">
  <style type="text/css" media="screen">
    body, ul,li {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    #taxis {
      max-width: 600px;
      max-height: 849px;
      margin: 10% auto;
      background: #c0c0c0;
      box-shadow: 0 1px 4px rgba(0,0,0,0.3) inset;
    }
  </style>
</head>
<body>  
  <div id="taxis">
    <ul>
      <li><img bg="media/taxi_london.jpg"></li>
      <li><img bg="media/taxi_istanbul.jpg"></li>
      <li><img bg="media/taxi_mexicocity.jpg"></li>
      <li><img bg="media/taxi_newyork.jpg"></li>
    </ul>
  </div>

  <script src="lib/zepto.min.js" type="text/javascript"></script>
  <script src="../swipeslide.min.js" type="text/javascript"></script>
  <script src="../lazyadapt.js" type="text/javascript"></script>
  <script type="text/javascript">
  $(document).ready(function() {
    $('#taxis').swipeSlide({
      bulletNavigation: false,
      paginateLabel: true,
      directionalNavigation: true,
      visibleSlides: 1,
      autoPlay: 2,
      beforeChange: function(swipe, curr, next) {
        imgAdapt($(swipe.slides[next]).children('img'))
      }
    })
  })  
  </script>
</body>
</html>
